import request from '@/utils/request';

/**
 * 登录
 */
export async function fakeAccountLogin(params) {
    return request(
        `/api/v1/user/sys/login`,
        {
            method: 'POST',
            body: params,
        }
    );
}

export async function getFakeCaptcha(mobile) {
    return request(`/api/login/captcha?mobile=${mobile}`);
}

//用戶退出
export async function fakeAccountLogout() {
    return request(`/api/v1/user/exit`, {
        method: 'POST',
    });
}
